<?php 
	require_once("DAO/UserDAO.php");
	class LoginAction {
	private $recherche;
		private $thisLogin;
		private $thisPass;
		public function __construct($login, $pass) {
			$this->thisLogin = $login;
			$this->thisPass = $pass; 
			if ((strcmp($this->thisLogin, "") != 0) && (strcmp($this->thisPass, "") != 0)){
					$this->login($this->thisLogin,$this->thisPass);
			}
		}
		public function login($username, $pass) {
			UserDAO::userValidation($username, $pass);			
		}
	
	}
